<!-- 12新浪导航
    开发规范
    实际开发遵循“从外到内、从上到下,盒子内：先宽高背景色(w,h,bgc,pading,border,margin)，后写内容(,disp)，再调文字位置(ta,lh)，最后控制文字细节(td,font:/hover)”
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    .box{
        height: 40px;
        border-top: 3px solid orange;
        border-bottom: 1px solid gray;
    }
    .content{
        height: 40px;
        padding:0 16px;
        /* background-color: #edeef0; */
        display: inline-block;

        text-align: center;
        line-height: 40px;

        text-decoration: none;
        color: #000;
        font-size: 12px;
        color: #4c4c4c;
    }
   .content:hover{
        color: orange;
        background-color: #edeef0;
    }
</style>
</head>

<body>
    <div class="box">
        <a href="#" class="content">新浪</a>
        <a href="#" class="content">新浪导航</a>
        <a href="#" class="content">新浪导航新浪导航</a>
        <a href="#" class="content">新浪导航</a>
    </div>
</body>
</html>